// 全局变量
var quantity = 0;
var mainColor = '#FFD668';
var COMPREHENSIVE_APPLICATION = (function() {
	//获取页面统计信息
	function loadChartInfo() {
		$.ajax({
			type: "POST",
			url: "invs_home_page.do/load_chart_info",
			data: {id : '60', datePatten : 1},
			success: function(data) {
				WeKnow.closeLoading();
				if (!WeKnow.filterAjaxResult(data)) return false; // session过期check

				if (data.errorcode == 0) {
					var chartInfo = data.chartInfo;
					// console.log(data)
					//页面的amount赋值
					getAmount(chartInfo);
					//处方违规类型（左上树状图）
					drawTypeBar(chartInfo.prescriptionSupervision.presDailyByType);
					//处方违规数趋势（左上折线图）
					drawTrendLine(chartInfo.prescriptionSupervision.violateTimeLine);
					//卫生消毒分布（右上饼状图）
					drawdisinfectPie(chartInfo.accountSupervision.accountType);
					//卫生消毒趋势（右上折线图）
					drawdisinfectTrendLine(chartInfo.accountSupervision.warningTimeLine);
					//质控评分分布
					drawQualityControlPie(chartInfo.qualityControl);
					//信用评价分布
					drawfeedbackBar(chartInfo.feedback);
					//社会监督（中底部）
					drawSocietyPie(chartInfo.societyVision.satisfactionList);
					//地图标点
					loadMarker(chartInfo.mapInfo);
				} else if (data.errorcode == -1 ){
					WeKnow.errorMsg( data.errMsg );
				} else {
					WeKnow.systemMsg('查询失败，请重新登录');
				}
			}
		});
	}
	//处方违规类型（左上树状图）
	function drawTypeBar(data) {
		var valueData = [
			{name:"医疗机构超范围诊疗", value:0},{name:"医师超范围开具处方", value:0},{name:"多个执业地点同时开具处方", value:0},
			{name:"无处方权开具处方", value:0},{name:"执业助理医师开具处方", value:0},{name:"未经批准开具精麻药品", value:0},
			{name:"未经培训合格开具抗菌药物", value:0}, {name:"越级使用抗菌药物", value:0},{name:"未经药师调剂药品", value:0},
			{name:"不合理用药", value:0},{name:"非执业点开处方", value:0},
		];

		if (data != undefined && data != null && data.length > 0) {
			for (var i=0; i < data.length; i++) {
				switch (data[i].type) {
					case "810001":
						valueData[0].value = data[i].value;
						break;
					case "810002":
						valueData[1].value = data[i].value;
						break;
					case "810003":
						valueData[2].value = data[i].value;
						break;
					case "820001":
						valueData[3].value = data[i].value;
						break;
					case "820002":
						valueData[4].value = data[i].value;
						break;
					case "820003":
						valueData[5].value = data[i].value;
						break;
					case "820004":
						valueData[6].value = data[i].value;
						break;
					case "820005":
						valueData[7].value = data[i].value;
						break;
					case "830001":
						valueData[8].value = data[i].value;
						break;
					case "840001"://包含所有84开头
						valueData[9].value = data[i].value;
						break;
					case "850001":
						valueData[10].value = data[i].value;
						break;
				}
			}
			valueData.sort(sortValue);
		}

		var nameData = [];
		for (var j=0; j < valueData.length; j++) {
			nameData.push(valueData[j].name);
		}

		// 1. 实例化对象
		var myChart = echarts.init(document.querySelector("#prescriptionBar"));
		// 2. 指定配置项和数据
		option = {
			color: [mainColor],
			xAxis : [
				{
					type : 'value',
					show: false,
					axisLine: {
						show: false
					},
					axisTick:{
						show: false
					},
					splitLine: {
						show: false
					}
				}
			],
			yAxis : [
				{
					min: 0,
					minInterval: 0,
					type : 'category',
					data : nameData,
					axisLabel: {
						show: true,
						textStyle: {
							color: 'rgb(255,255,255,0.9)',
							fontSize:fontChart(0.15)
						}
					},
					axisLine:{
						show: false,
					},
					axisTick:{
						"show":false
					},
					splitLine: {
						"show": false
					}
				}
			],
			grid: {
				left: '1%',
				right: '5%',
				bottom: '5%',
				top: '7%',
				containLabel: true
			},
			series : [
				{
					type:'bar',
					barMinHeight: fontChart(0.0125),
					barWidth: fontChart(0.1875),
					itemStyle : {
						normal: {
							label : {
								show: true,
								position: 'right',
							},
						}
					},
					data:valueData
				}
			]
		};
		// 3. 配置项和数据给我们的实例化对象
		myChart.setOption(option);
		// 4. 当我们浏览器缩放的时候，图表也等比例缩放
		window.addEventListener("resize", function() {
			// 让我们的图表调用 resize这个方法
			myChart.resize();
		});
	};

	function sortValue(a, b) {
		return a.value - b.value;
	}

	//处方违规数趋势（左上折线图）
	function drawTrendLine(data) {
		if (data.length == 0) {
            return;
        } else {
            var nameData = [];
            for(var i=0; i < data.length; i++){
                nameData.push(data[i].name);
            }
        }
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.querySelector("#prescriptionLine"));
		// 2. 指定配置和数据
		option = {
			title: {
				x: 'left',
				y: 'top',
				text:"处方违规数",
				textStyle: {
					fontSize: fontChart(0.15),
					color: mainColor
				},
			},
			tooltip: {
				trigger: "axis",
				axisPointer: {
					lineStyle: {
						color: mainColor
					}
				}
			},
			grid: {
				left: "20",
				top: "25",
				right: "20",
				bottom: "15",
				containLabel: true
			},
			xAxis: [
				{
					type: "category",
					boundaryGap: false,
					axisLine: {
						lineStyle: {
							color: mainColor,
						},
					},
					axisTick: {
						show: false
					},
					splitLine: {
						show: false
					},
					data: nameData,
					axisLabel: {
						margin: fontChart(0.2),
						interval:0, //坐标刻度之间的显示间隔，默认就可以了（默认是不重叠）
						rotate: 30,   //调整数值改变倾斜的幅度（范围-90到90）
						textStyle: {
							color: mainColor,
							fontSize: fontChart(0.15)
						}
					},
					grid: {
						left: '0%',
						bottom:'90%'
					},
				},
				{
					axisPointer: { show: false },
					axisLine: { show: false },
					position: "bottom",
					offset: 20
				}
			],
			yAxis: [
				{
					type: "value",
					min: 0,
					minInterval: 1,
					axisTick: { show: false },
					axisLine: {
						lineStyle: {
							color: mainColor,
						},
					},
					axisLabel: {
						textStyle: {
							color: mainColor,
							fontSize: fontChart(0.15)
						}
					},
					splitLine: {
						show: false
					}
				}
			],
			series: [
				{
					name: "",
					type: "line",
					smooth: false,
					symbol: "circle",
					symbolSize: 0,
					showSymbol: false,
					lineStyle: {
						normal: {
							color: mainColor,
							width: 2
						}
					},
					areaStyle: {
						normal: {
							color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
								offset: 0,
								color: mainColor
							}, {
								offset: 1,
								color: 'rgba(255,214,104,0.1)'
							}]),
						}
					},
					itemStyle: {
						normal: {
							color: mainColor,
							borderColor: "rgba(221, 220, 107, .1)",
							borderWidth: 12
						}
					},
					data: data
				}
			]
		};
		// 3. 把配置和数据给实例对象
		myChart.setOption(option);

		window.addEventListener("resize", function() {
			myChart.resize();
		});
	};
	//卫生台账覆盖率（右上饼状图）
	function drawdisinfectPie(data) {

		if (data.length == 0) {
			return;
		} else {
			var nameData = [];
			var valueData = [
				{"name":"器械消毒", "value": 0},{"name":"场所消毒", "value": 0},{"name":"医疗废物", "value": 0},
				{"name":"污水余氯", "value": 0},{"name":"污水检测", "value": 0},{"name":"器械灭菌检测", "value": 0}
			];
			for(var i=0; i < valueData.length; i++){
				nameData.push(valueData[i].name);
				switch (i) {
					case 0:
						valueData[i].value = data.t101;
						break;
					case 1:
						valueData[i].value = data.t102;
						break;
					case 2:
						valueData[i].value = data.t201;
						break;
					case 3:
						valueData[i].value = data.t302;
						break;
					case 4:
						valueData[i].value = data.t301;
						break;
					case 5:
						valueData[i].value = data.t303;
						break;
				}
			}
		}
		// 1. 实例化对象
		var myChart = echarts.init(document.querySelector("#disinfectPie"));
		// 2. 指定配置项和数据
		var option = {
			title: {
				text: '卫生消毒',
				subtext: '异常分布',
				x: 'center',
				y:'center',
				itemGap: fontChart(0.05),
				textStyle: {
					fontSize: fontChart(0.225),
					fontWeight: '900',
					color: 'white'
				},
				subtextStyle: {
					fontSize: fontChart(0.225),
					fontWeight: '900',
					color: 'white'
				},
			},
			legend: {
				orient: 'vertical',
				top: "center",
				right: 0,
				itemHeight: fontChart(0.125),
				itemWidth: fontChart(0.1875),
				itemGap: fontChart(0.06),
				data: nameData,
				textStyle: {
					color: "#fff",
					fontSize: fontChart(0.15)
				}
			},
			tooltip: {
				trigger: 'item',
				formatter: '{b} : {c} ({d}%)'
			},
			series: [{
				type: 'pie',
				radius: ['45%', '90%'],
				// center: ['40%', '50%'],
				roseType: 'radius',
				color: [
					"#01FFFF", "#F4997A", "#59B0F3",
					"#FFF102", "#EC6876", "#30B26C"
				],
				itemStyle: {
					normal: {
						label: {
							show: false,
							position : 'inner',
						},
						labelLine: {
							show: false,
						}
					}
				},
				data: valueData
			}]
		};

		// 3. 配置项和数据给我们的实例化对象
		myChart.setOption(option);
		// 4. 当我们浏览器缩放的时候，图表也等比例缩放
		window.addEventListener("resize", function() {
			// 让我们的图表调用 resize这个方法
			myChart.resize();
		});
	}
	//处方违规数趋势（右上折线图）
	function drawdisinfectTrendLine(data) {
		if (data.length == 0) {
            return;
        } else {
            var nameData = [];
            for(var i=0; i < data.length; i++){
                nameData.push(data[i].name);
            }
        }
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.querySelector("#disinfectLine"));
		// 2. 指定配置和数据
		option = {
			title: {
				x: 'left',
				y: 'top',
				text:"台账违规数",
				textStyle: {
					fontSize: fontChart(0.15),
					color: '#02FBFF'
				},
			},
			tooltip: {
				trigger: "axis",
				axisPointer: {
					lineStyle: {
						color: '#02FBFF'
					}
				}
			},
			grid: {
				left: "20",
				top: "25",
				right: "20",
				bottom: "15",
				containLabel: true
			},
			xAxis: [
				{
					type: "category",
					boundaryGap: false,
					axisLine: {
						lineStyle: {
							color: '#02FBFF',
						},
					},
					axisTick: {
						show: false
					},
					splitLine: {
						show: false
					},
					data: nameData,
					axisLabel: {
						margin: fontChart(0.2),
						interval:0, //坐标刻度之间的显示间隔，默认就可以了（默认是不重叠）
						rotate: 30,   //调整数值改变倾斜的幅度（范围-90到90）
						textStyle: {
							color: '#02FBFF',
							fontSize: fontChart(0.15)
						}
					},
					grid: {
						left: '0%',
						bottom:'90%'
					},
				},
				{
					axisPointer: { show: false },
					axisLine: { show: false },
					position: "bottom",
					offset: 20
				}
			],
			yAxis: [
				{
					type: "value",
					min: 0,
					minInterval: 1,
					axisTick: { show: false },
					axisLine: {
						lineStyle: {
							color: '#02FBFF',
						},
					},
					axisLabel: {
						textStyle: {
							color: '#02FBFF',
							fontSize: fontChart(0.15)
						}
					},
					splitLine: {
						show: false
					}
				}
			],
			series: [
				{
					name: "",
					type: "line",
					smooth: false,
					symbol: "circle",
					symbolSize: 0,
					showSymbol: false,
					lineStyle: {
						normal: {
							color: '#02FBFF',
							width: 2
						}
					},
					areaStyle: {
						normal: {
							color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
								offset: 0,
								color: '#02FBFF'
							}, {
								offset: 1,
								color: 'rgba(88,255,225,0.1)'
							}]),
						}
					},
					itemStyle: {
						normal: {
							color: '#02FBFF',
							borderColor: "rgb(2, 251, 255)",
							borderWidth: 12
						}
					},
					data: data
				}
			]
		};
		// 3. 把配置和数据给实例对象
		myChart.setOption(option);

		window.addEventListener("resize", function() {
			myChart.resize();
		});
	};
	//社会监督
	function drawSocietyPie(data) {
		var valueData = [
			{'name':'满意度<50%', 'value':0},
			{'name':'80%>满意度≥50%', 'value':0},
			{'name':'满意度≥80%', 'value':0},
		];

		var nameData = [];
		for(var i=0; i < valueData.length; i++){
			nameData.push(valueData[i].name);
		}

		if (data.count0 != undefined) {
			valueData[0].value = data.count0;
		}

		if (data.count1 != undefined) {
			valueData[1].value = data.count1;
		}

		if (data.count2 != undefined) {
			valueData[2].value = data.count2;
		}

		// 1. 实例化对象
		var myChart = echarts.init(document.querySelector("#societyPie"));
		// 2. 指定配置项和数据
		option = {
			/*tooltip : {
				trigger: 'item',
				formatter: "{a} <br/>{b} : {c} ({d}%)"
			},*/
			series : [
				{
					name: '满意度调查',
					type: 'pie',
					radius : '80%',
					center: ['55%', '45%'],
					// hoverAnimation: false,
					labelLine : {
						show : true,
						normal:{
							length: fontChart(0.25),  // 改变标示线的长度
							lineStyle: {
								color: "rgb(255,255,255,0.9)"  // 改变标示线的颜色
							}
						},
					},
					itemStyle : {
						normal : {
							label : {
								show : true,
								formatter: "{b}\n{c} ({d}%)",
								textStyle: {
									color: "rgb(255,255,255,0.9)",  // 改变标示文字的颜色
									fontSize : fontChart(0.15)
								}
							},
							labelLine : {
								show : true
							}
						},
					},
					color: [
						"#5de09e", "#f9ec7c", "#ffb190"
					],
					data:valueData,
				}
			]
		};

		// 3. 配置项和数据给我们的实例化对象
		myChart.setOption(option);
		// 4. 当我们浏览器缩放的时候，图表也等比例缩放
		window.addEventListener("resize", function() {
			// 让我们的图表调用 resize这个方法
			myChart.resize();
		});
	};
	//质控评分分布
	function drawQualityControlPie(data) {
		if (data.length == 0) {
			return;
		} else {
			var nameData = [];
			var valueData = [];
			for(i=0;i<data.length;i++){
				nameData.push(data[i].name);
				valueData.push(data[i]);
			}
		}
		// 1. 实例化对象
		var myChart = echarts.init(document.querySelector("#qualityControlPie"));
		// 2. 指定配置项和数据
		option = {
			tooltip : {
				trigger: 'item',
				formatter: "{b}<br/>{c} ({d}%)"
			},
			color: [
				mainColor,
				"#217eff",
			],
			series : [
				{
					name:'',
					type:'pie',
					center: ["50%", "45%"],
					radius : ['40%', '60%'],
					labelLine : {
						show : true,
						normal:{
							length: fontChart(0.125),  // 改变标示线的长度
							lineStyle: {
								color: "rgb(255,255,255,0.9)"  // 改变标示线的颜色
							}
						},
					},
					itemStyle : {
						normal : {
							label : {
								show : true,
								formatter: "{b}\n{c} ({d}%)",
								textStyle: {
									color: "rgb(255,255,255,0.9)",  // 改变标示文字的颜色
									fontSize : fontChart(0.15)
								}
							},
							labelLine : {
								show : true
							}
						}
					},
					color: ['#F2828E', '#FFFF01', '#558FF0'],
					data:valueData
				}
			]
		};
		// 3. 配置项和数据给我们的实例化对象
		myChart.setOption(option);
		// 4. 当我们浏览器缩放的时候，图表也等比例缩放
		window.addEventListener("resize", function() {
			// 让我们的图表调用 resize这个方法
			myChart.resize();
		});
	};
	//信用评价分布
	function drawfeedbackBar(data) {
		if (data == null || data.length == 0) {
			return;
		} else {
			var nameData = [];
			var valueData = [];
			for(i=0;i<data.length;i++){
				nameData.unshift(data[i].name);
				valueData.unshift(data[i]);
			}
		}
		// 1. 实例化对象
		var myChart = echarts.init(document.querySelector("#feedbackBar"));
		// 2. 指定配置项和数据
		option = {
			title: {
				subtext: '机构数',
				subtextStyle: {
					color: mainColor,
				}
			},
			/*grid:{
				x: 40,
				y: 60,
				x2: 15,
				y2: 25,
			},*/
			tooltip : {
				trigger: 'axis'
			},
			calculable : true,
			xAxis : [
				{
					type : 'category',
					data : nameData,
					axisLine: {
						lineStyle: {
							color: mainColor
						}
					},
					splitLine: {
						show: false
					},
					axisTick:{
						show:false
					},
					axisLabel: {
						textStyle: {
							fontSize: fontChart(0.15)
						}
					}
				}
			],
			yAxis : [
				{
					type : 'value',
					minInterval: 1,
					axisLine: {
						lineStyle: {
							color: mainColor
						}
					},
					splitLine: {
						show: false
					},
					axisTick:{
						show:false
					},
					axisLabel: {
						textStyle: {
							fontSize: fontChart(0.15)
						}
					}
				}
			],
			series : [
				{
					name:'机构数',
					type:'bar',
					data:valueData,
					itemStyle: {
						normal: {
							color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
								offset: 0,
								color: mainColor
							}, {
								offset: 1,
								color: '#195bff'
							}]),
						}
					},
					barWidth: 40,
				}
			]
		};

		// 3. 配置项和数据给我们的实例化对象
		myChart.setOption(option);
		// 4. 当我们浏览器缩放的时候，图表也等比例缩放
		window.addEventListener("resize", function() {
			// 让我们的图表调用 resize这个方法
			myChart.resize();
		});
	};
	//数量数据页面赋值
	function getAmount(data) {
		/***诊疗行为部分**/
		//电子处方
		$("#prescriptionAmount").html(data.prescriptionSupervision.allPresCnt);
		//违规处方
		$("#violatePrescription").html(data.prescriptionSupervision.errorPresCnt);
		//违规率
		$('#violateRate').html(data.prescriptionSupervision.allPresCnt == 0 ? '-':(data.prescriptionSupervision.errorPresCnt*100/data.prescriptionSupervision.allPresCnt).toFixed(2)+"%");
		//已处理
		$('#prescriptionHandle').html(data.prescriptionSupervision.errorPresProcessedCnt);
		//处理率
		$('#prescriptionHandleRate').html(data.prescriptionSupervision.errorPresCnt == 0 ? '-':(data.prescriptionSupervision.errorPresProcessedCnt*100/data.prescriptionSupervision.errorPresCnt).toFixed(2)+"%");
		/***自查自律**/
		//应自查数
		// $('#examinationAmount').html(data.autonomyExamination.inspections);
		$('#examinationAmount').html(data.autonomyExamination.inspections);
		//未全面自查数
		$('#NoExaminationAmount').html(data.autonomyExamination.incompleteComprehensiveInspections);
		//未专业自查数
		$('#noSpeciallyAmount').html(data.autonomyExamination.incompleteProfessionalInspections);
		//未全面自查数占比
		$('#examinationRate').html(data.autonomyExamination.inspections == 0 ? '-':(data.autonomyExamination.incompleteComprehensiveInspections*100/data.autonomyExamination.inspections).toFixed(2)+"%");
		//未专业自查数占比
		$('#noSpeciallyRate').html(data.autonomyExamination.inspections == 0 ? '-':(data.autonomyExamination.incompleteProfessionalInspections*100/data.autonomyExamination.inspections).toFixed(2)+"%");
		/***卫生消毒**/
		//电子台账
		$('#electronicDisinfect').html(data.accountSupervision.allActionCnt);
		//异常台账
		$('#illegalDisinfect').html(data.accountSupervision.errorActionCnt);
		//异常率
		$('#illegalRate').html(data.accountSupervision.allActionCnt == 0 ? '-':(data.accountSupervision.errorActionCnt*100/data.accountSupervision.allActionCnt).toFixed(2)+"%");
		//已处理
		$('#disinfectHandle').html(data.accountSupervision.errorActionProcessedCnt);
		//处理率
		$('#disinfectHandleRate').html(data.accountSupervision.errorActionCnt == 0 ? '-':(data.accountSupervision.errorActionProcessedCnt*100/data.accountSupervision.errorActionCnt).toFixed(2)+"%");
		/***社会监督**/
		//无扫码记录机构
		$('#noQrcodeScanning').html(data.societyVision.noQrcodeScanning);
		//公众评价书<3
		$('#fewPublicComments').html(data.societyVision.fewPublicComments);
	}
	//获取坐标点在地图上标注出来
	function loadMarker(data) {
		var pointArray = [];
		pointArray.push(data.accountSupervisionPoints); //台账异常
		pointArray.push(data.autonomyExaminationPoints);//未完成自查
		pointArray.push(data.feedbackPoints);//信用评价差
		pointArray.push(data.prescriptionSupervisionPoints);//处方违规
		MY_MAP.loadMultipleMarker(pointArray);
	}
	return {
		loadChartInfo:loadChartInfo,
		drawTypeBar:drawTypeBar,
		drawTrendLine:drawTrendLine,
		drawdisinfectPie:drawdisinfectPie,
		drawdisinfectTrendLine:drawdisinfectTrendLine,
		drawSocietyPie:drawSocietyPie,
		drawQualityControlPie:drawQualityControlPie,
		drawfeedbackBar:drawfeedbackBar,
		loadMarker:loadMarker
	}
})();
//自适应字体大小
function fontChart(res) {
	//获取到屏幕的宽度
	var clientWidth =
		window.innerWidth ||
		document.documentElement.clientWidth ||
		document.body.clientWidth;
	if (!clientWidth) return; //报错拦截：
	var fontSize = 80 * (clientWidth / screen.width);
	return res * fontSize;
}

var typeData = [
	{'name':'医美', 'value':'1001'},{'name':'西医', 'value':'1002'},{'name':'中医', 'value':'1003'},
	{'name':'中西医', 'value':'1004'},{'name':'口腔', 'value':'1005'}
];

var industryPieData = [
	{'name':'口腔', 'value':130},{'name':'医美', 'value':130},{'name':'中医', 'value':60},{'name':'西医', 'value':160},{'name':'中西医', 'value':20}
];

var levelBarData = [
	{'name':'三级医院', 'value':20},{'name':'二级医院', 'value':60},{'name':'一级医院', 'value':60},{'name':'不定级', 'value':120}
];

var economicPieData = [
	{'name':'公立', 'value':300},{'name':'民营', 'value':200}
];

var natrueBarData = [
	{'name':'省办', 'value':20},{'name':'市办', 'value':70},{'name':'区办', 'value':70},{'name':'社办', 'value':130}
];

var distributionPolarData = [
	{'name':'湖滨街道', 'value':120},{'name':'清波街道', 'value':100},
	{'name':'小营街道', 'value':160},{'name':'望江街道', 'value':120},
	{'name':'南星街道', 'value':180},{'name':'紫阳街道', 'value':100}
];

var carouselData = [
	{'name':'湖滨街道', 'value':120, 'ownership':'省办/20,市办/70,区办/70,社办/130'},{'name':'清波街道', 'value':100, 'ownership':'省办/20,市办/70,区办/70,社办/130'},
	{'name':'小营街道', 'value':160, 'ownership':'省办/20,市办/70,区办/70,社办/130'},{'name':'望江街道', 'value':120, 'ownership':'省办/20,市办/70,区办/70,社办/130'},
	{'name':'南星街道', 'value':180, 'ownership':'省办/20,市办/70,区办/70,社办/130'},{'name':'紫阳街道', 'value':100, 'ownership':'省办/20,市办/70,区办/70,社办/130'}
];

$(document).ready(function() {
	/*//初始化地图
	MY_MAP.initMap("comprehensive_application");
	//加载数据
	COMPREHENSIVE_APPLICATION.loadChartInfo();
	setInterval(function(){ COMPREHENSIVE_APPLICATION.loadChartInfo(); }, 5000);*/
});
